# 1.
cmake_minimum_required(VERSION 3.18)

#2. 
project(InstallHello)

# 3.添加构建项目
add_executable(hello main.cc)

# 4. 安装到本地
include(GNUInstallDirs)
install(TARGETS hello)

